{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static django_bootstrap5 widget_tweaks %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static 'ietf/css/select2.css' %}">
    <link rel="stylesheet" href="{% static 'ietf/css/datepicker.css' %}">
{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        {% block title %}
            Cancel Interim
            {% if meeting %}
                Meeting
            {% else %}
                Session
            {% endif %}
            {% if session_status != "sched" %}Request{% endif %}
        {% endblock %}
    </h1>
    <form id="interim-request-cancel-form"
         
          method="post"
          class="my-3">
        {% csrf_token %}
        {% bootstrap_form form layout='horizontal' %}
        <div class="mb-3">
            <button type="submit" class="btn btn-primary">Submit</button>
            {% if meeting %}
                <a class="btn btn-secondary float-end"
                   href="{% url 'ietf.meeting.views.interim_request_details' number=meeting.number %}">
                    Back
                </a>
            {% else %}
                <a class="btn btn-secondary float-end"
                   href="{% url 'ietf.meeting.views.interim_request_details' number=session.meeting.number %}">
                    Back
                </a>
            {% endif %}
        </div>
    </form>
{% endblock %}
{% block js %}
    <script src="{% static 'ietf/js/datepicker.js' %}"></script>
    <script src="{% static 'ietf/js/select2.js' %}"></script>
    <script src="{% static 'ietf/js/meeting-interim-request.js' %}"></script>
{% endblock %}